package com.qumitech.visualnovel.service.account;

import com.qumitech.visualnovel.datasource.console.SysPermissionMapper;
import com.qumitech.visualnovel.model.dao.console.SysPermission;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysPermissionServiceImpl implements SysPermissionService {
    @Autowired
    SysPermissionMapper sysPermissionMapper;

    @Override
    public List<SysPermission> getSysPermissionListByParentId(int parentId) {
        return sysPermissionMapper.getSysPermissionListByParentId(parentId);
    }
}
